<template>
  <el-cascader
    :show-all-levels="false"
    :options="tree"
    :props="{value:'user',label:'name',expandTrigger: 'hover'}"
    v-model="val"
    :disabled="disabled"
    clearable
    @change="$emit('change','itemIO',$event[$event.length-1])"
  />
</template>
<script>
// import name from "./name";
export default {
  // components: { name},
  props: {
    disabled: { default: false }
  },
  watch: {},
  data() {
    return {
      tree: [
        { user: 1, name: "入库单" },
        { user: 2, name: "出库单" },
        { user: 3, name: "库存调整单" }
      ],
      val: [],
      gd: this.$gd
    };
  },
  // computed() {return{}},
  created() {},
  methods: {
    tst(a, b) {
      console.log(a, b);
    }
  }
};
</script>

<style scoped>
</style>
